home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-in_the_mag-
/
reader_requests
/
scilab
/
tests
/
breakpoints.dia.ref
< prev
next >
Wrap
Text File
|
1999-09-16
|
4KB
|
273 lines
mode(-1)
//
// (setbpt delbpt).
deff('[]=lig()',[
'shlig(2),';
'if 1>2 then,';
' shlig(4),';
',';
' shlig(6) ,'; // break-point
',';
'end,shlig(8) ,'; // break-point
'shlig(9),';
'for k=1:3,';
' k;shlig(11) ,'; // break-point
'end,shlig(12) ,'; // break-point
',';
'for l=1:10,';
' if l=5 then break,end,';
' l,';
'end,shlig(17) ,'; // break-point
'shlig(18),';
'select 2,';
'case 1 then,';
',';
'case 2 then,';
' shlig(23) ,'; // break-point
'case 3 then,';
'1,';
'else,';
'2,';
'end,shlig(28) ,'; // break-point
'shlig(29),';
'select 0,';
'case 1 then,';
'1,';
'case 2 then,';
'2,';
'case 3 then,';
'3,';
'else,';
' shlig(38) ,'; // break-point
'end,shlig(39),'; // break-point
'shlig(40) ,'; // break-point
'i=0,';
'while i<3,';
'i=i+1,shlig(43) ,'; // break-point
'end,shlig(44) ,'; //break-point
'i=0;,';
'while i<10,';
'i=i+1,if i=2 then break,end,shlig(47),';
'end,shlig(48) ,' //break-point
])
deff('[]=shlig(n)','write(%io(2),''ligne ''+string(n))')
//definition des points d'arrets
setbpt('lig',6)
setbpt('lig',8)
setbpt('lig',11)
setbpt('lig',12)
setbpt('lig',17)
setbpt('lig',23)
setbpt('lig',28)
setbpt('lig',38)
setbpt('lig',39)
setbpt('lig',40)
setbpt('lig',43)
setbpt('lig',44)
setbpt('lig',48)
write(%io(2),[
'user should check the line number'])
user should check the line number
write(%io(2),[' ';'MACRO NOT COMPILED';'-----------------';' '])
MACRO NOT COMPILED
-----------------
lig()
ligne 2
ligne 8
Stop after row 8 in function lig :
end,shlig(8) ,
resume
ligne 9
ligne 11
Stop after row 11 in function lig :
k;shlig(11) ,
resume
ligne 11
Stop after row 11 in function lig :
k;shlig(11) ,
resume
ligne 11
Stop after row 11 in function lig :
k;shlig(11) ,
resume
ligne 12
Stop after row 12 in function lig :
end,shlig(12) ,
resume
ligne 17
Stop after row 17 in function lig :
end,shlig(17) ,
resume
ligne 18
ligne 23
Stop after row 23 in function lig :
shlig(23) ,
resume
ligne 28
Stop after row 28 in function lig :
end,shlig(28) ,
resume
ligne 29
ligne 38
Stop after row 38 in function lig :
shlig(38) ,
resume
ligne 39
Stop after row 39 in function lig :
end,shlig(39),
resume
ligne 40
Stop after row 40 in function lig :
shlig(40) ,
resume
ligne 43
Stop after row 43 in function lig :
i=i+1,shlig(43) ,
resume
ligne 43
Stop after row 43 in function lig :
i=i+1,shlig(43) ,
resume
ligne 43
Stop after row 43 in function lig :
i=i+1,shlig(43) ,
resume
ligne 44
Stop after row 44 in function lig :
end,shlig(44) ,
resume
ligne 47
ligne 48
Stop after row 48 in function lig :
end,shlig(48) ,
resume
comp(lig)
write(%io(2),[' ';'COMPILED MACRO';'-----------------';' '])
COMPILED MACRO
-----------------
lig()
ligne 2
ligne 8
Stop after row 8 in function lig :
resume
ligne 9
ligne 11
Stop after row 11 in function lig :
resume
ligne 11
Stop after row 11 in function lig :
resume
ligne 11
Stop after row 11 in function lig :
resume
ligne 12
Stop after row 12 in function lig :
resume
ligne 17
Stop after row 17 in function lig :
resume
ligne 18
ligne 23
Stop after row 23 in function lig :
resume
ligne 28
Stop after row 28 in function lig :
resume
ligne 29
ligne 38
Stop after row 38 in function lig :
resume
ligne 39
Stop after row 39 in function lig :
resume
ligne 40
Stop after row 40 in function lig :
resume
ligne 43
Stop after row 43 in function lig :
resume
ligne 43
Stop after row 43 in function lig :
resume
ligne 43
Stop after row 43 in function lig :
resume
ligne 44
Stop after row 44 in function lig :
resume
ligne 47
ligne 48
Stop after row 48 in function lig :
resume
delbpt('lig')
clear lig shlig